package com.smarthospital.service;


import com.smarthospital.entity.dto.WxResultJscode2sessionDTO;

public interface WxApiService {
    /**
     * 获取微信  oppenId  unionId
     * GET
     * 微信官方文档
     * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html
     */
    String URL_jscode2session = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    /**
     *
     * @param source  来源 0_小程序
     * @param code  微信code
     * @return
     */
    WxResultJscode2sessionDTO jscode2session(Integer source, String code);


}
